﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SalePartial.BLL;

public partial class NewsList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //XPNews nm = new XPNews();
            //rptNewNews.DataSource = nm.SelectTop10News();
            //rptNewNews.DataBind();

            //rptHotNews.DataSource = nm.SelectHotNews();
            //rptHotNews.DataBind();
        }
    }

    protected void LbtnLink_Click(object sender, EventArgs e)
    {
        LinkButton lb = (LinkButton)sender;
        if (lb.CommandArgument != null && lb.CommandArgument != string.Empty)
        {
            Response.Redirect("newsContent.aspx?id=" + lb.CommandArgument, false);

            //string radalertscript = "<script language='javascript'>function f(){radopen(\"newsContent.aspx?id=" + lb.CommandArgument + "\", null); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>";
            //Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);

        }
    }
}

